<style type="text/css">
	#overlay { display: block;}
</style>
<!--<input name="action" value="updateitem" type="hidden" />-->
<input name="item" value="<?php echo $item ?>" type="hidden" />

<!--<form class="form" method="POST">-->
	<div id="main" class="curve">
		<div id="overlay" class="curve"></div>
		<!--overlay-->
		<h2><?php echo $ptitle; ?></h2>
		
		<div class="view-section">
			<h4>Available Leaves</h4>
			<div class="row">		
				<p>
					<label>Name:</label>
					<span name="fullname" id="fullname" title="Name" class="view"><span />
				</p>
				<p>
					<label>Gender:</label>
					<span name="gender_name" id="gender_name" title="Gender" class="view"><span />
				</p>
				<p>
					<label>Status:</label>
					<span name="es_name" id="es_name" title="Status" class="view"><span />
				</p>				
				<p>
					<label>Team:</label>
					<span name="group_name" id="group_name" title="Team Name" class="view"><span />
				</p>
				<p>
					<label>Position:</label>
					<span name="position_name" id="position_name" title="Team Name" class="view"><span />
				</p>
				<p>
					<label>Available Leaves:</label>
					<select name="available_leaves" id="available_leaves" title="Available Leaves">
						<?php if(count($leaves)) { foreach($leaves as $l) echo '<option value="'.$l['leave_id'].'">'.$l['leave_name'].' - '.$l['leave_code'].'</option>'; } else { echo '<option value="0">No Available Leaves</option>'; } ?>
					</select>&nbsp;
					<a href="javascript:void(0);" id="add-leave" class="submit-small"><span>Add</span></a>
				</p>				
			</div>
			<!--row-->
			<table class="leavesFlex"></table>
		</div>
		<!--section-->
		
		<div class="section">
			<div class="row float-right">
				<a href="<?php echo base_url().$module ?>/manage.html" class="submit-small"><span>Return</span></a>
				<!--<a href="javascript:void(0)" class="submit-small" id="form-submit"><span>Save</span></a>-->
				<div class="clear"></div>
			</div>
		</div>
		<!--section-->
		
	</div>
	<!--main-->
<!--</form>-->